﻿namespace io.gitee.springsongs
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Bird tianer=new Bird();
            tianer.Name = "天鹅";
            tianer.Fly();
            Bird yanzhi = new Bird();
            tianer.Name = "燕子";
            tianer.Fly();
        }

        public class Bird
        {
            public string? Name { get; set; }
            public void Fly()
            {
                Console.WriteLine($"{Name}在天上飞");
            }
        }
    }
}